import { ApiProperty } from '@midwayjs/swagger';
import { Rule, RuleType } from '@midwayjs/validate';
import { AddressEntity } from 'src/entity/userinfo/payAddress';
/**
 * 描述
 */
export class OrderpayDTO {
  // 描述
  @ApiProperty({ example: '1', description: '订单id'})
  @Rule(RuleType.number().required())
  id: number;
  // 描述
  @ApiProperty({ example: 'http://www.baidu.com', description: '支付完成后跳转的路径'})
  @Rule(RuleType.string().required())
  returnUrl: string;
  @ApiProperty({ example: 1, description: '分享的id'})
  @Rule(RuleType.number())
  agent: number;  
  // 
  @ApiProperty({ example: { 
    email: "ekriafipcd@iubridge.com" , 
    billingPhone:'702-810-9982',
    billingFirstName:'Carlo',
    billingLastName:"Phil",
    billingAddress:"3970  Mesa Drive",
    billingCity:"Las Vegas",
    billingState:"NV",
    billingCountry:"LV",
    billingZipCode:"3970",
    cardNo:"4931930110475120",
    expYear:"2026",
    cvv:"849",
    expMonth:1
  }, description: '支付的账单地址'})
  @Rule(RuleType.object())
  extra: AddressEntity;
  // 
  @ApiProperty({ example: '0', description: '支付的账单地址的id, 说明已经在数据库存在了'})
  @Rule(RuleType.string())
  extraID: number;






  
}
